@ECHO OFF
SETLOCAL
:: Java 8 required
SET sh_folder="%~dp0"
IF EXIST "%sh_folder%\..\myrpc-client-thrifty" (
    PUSHD "%sh_folder%\..\myrpc-client-thrifty"
    SET OUT_FOLDER=src\thrifty\java
    IF EXIST %OUT_FOLDER% RMDIR  %OUT_FOLDER% /s/q
    CALL mvn com.gitee.l0km:thrifty-compiler-maven-plugin:stub 	
    POPD 
)
ENDLOCAL